package com.park.fristclass;


import androidx.appcompat.app.AppCompatActivity;


import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;


public class MainActivity extends AppCompatActivity {
    public static  String TAG="移动GIS";
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Button button =findViewById(R.id.mButton);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent(MainActivity.this,MainActivity2.class);
                startActivity(intent);
//                clickButton();
            }
        });

    }

    public void clickButton(){
        Log.e(TAG,"点击按钮");
        Log.i(TAG,"点击按钮");
        Log.w(TAG,"点击按钮");
        Log.d(TAG,"点击按钮");
    }



}